<?php
namespace Admin\Model;

use Think\Model;

class GoodsModel extends Model
{
    protected $tableName = 'goods';

    protected $_validate = array(
        array('name', 'require', '商品名必填'),
        array('des', 'require', '描述必填'),
    );

    protected $_auto = array(
        array('ctime', 'time', 1, 'function'),
    );

}
